package cn.xi;

import cn.xi.utils.QiniuUtils;
import org.springframework.beans.factory.annotation.Autowired;
import redis.clients.jedis.JedisPool;

import java.util.Set;

public class deletequartz {
    @Autowired
    private JedisPool jedisPool;

    public void deletebiao(){
        Set<String> sdiff = jedisPool.getResource().sdiff("qiniu", "shujuku");
        if (sdiff!=null){
            for (String s : sdiff) {
                QiniuUtils.deleteFileFromQiniu(s);
                jedisPool.getResource().srem("qiniu",s);
            }

        }
    }

}
